package com.doone.telmarket.domain;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 
 * @author 吴同庆
 * @date 2009-10-9
 * @description  增值业务产品
 * @package com.doone.telmarket.domain
 */
public class ServiceProduct implements Serializable {

	private static final long serialVersionUID = -4735980954613037108L;

	//产品标识
	private String productId;

	//产品类型
	private ServiceProductType productType;

	//产品使用费用
	private Currency productCost;

	//产品名称
	private String productName;

	//产品摘要
	private String productSummary;

	//增值业务
	private Service service;
	
	//是否可订购
	private String canAccept;
	//是否可体验
	private String canErlebnis;

	public ServiceProduct() {

	}

	public ServiceProduct(String productId, String productType, Currency productCost, String productName,
			Service service, String productSummary) {
		this.productId = productId;
		this.productType = ServiceProductType.valueOf(productType);
		this.productCost = productCost;
		this.productName = productName;
		this.service = service;
		this.productSummary = productSummary;
	}

	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}

	public Currency getProductCost() {
		return productCost;
	}

	public void setProductCost(Currency productCost) {
		this.productCost = productCost;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public ServiceProductType getProductType() {
		return productType;
	}

	public void setProductType(ServiceProductType productType) {
		this.productType = productType;
	}

	public Service getService() {
		return service;
	}

	public void setService(Service service) {
		this.service = service;
	}

	public BigDecimal getCost() {
		return getProductCost().getMoney();
	}

	public String getProductSummary() {
		return productSummary;
	}

	public void setProductSummary(String productSummary) {
		this.productSummary = productSummary;
	}

	public String getCanAccept() {
		return canAccept;
	}

	public void setCanAccept(String canAccept) {
		this.canAccept = canAccept;
	}

	public String getCanErlebnis() {
		return canErlebnis;
	}

	public void setCanErlebnis(String canErlebnis) {
		this.canErlebnis = canErlebnis;
	}
	
	
	

}
